/**
 * V3PRO中定义的告警状态
 */
export enum HealthEnum {
  UNKNOWN = "unknown",
  NORMAL = "normal",
  WARN = "warning",
  ABNORMAL = "abnormal",
}

/**
 * V3PRO中定义的告警描述
 */
export enum HealthDescEnum {
  NORMAL = "Status normal",
  UNREACHABLE = "Unreachable, never communicate success",
  OFF_LINE = "Off line, communicate error",
  VOLTAGE_HIGH = "Input voltage is too high",
  VOLTAGE_LOW = "Input voltage is too low",
  OVER_TEMP = "Working temperature is too high",
  COMM_NODE_ERR = "Net port or fiber connection error",
  INPUT_LOSE = "Sender current displaying input signal lose",
  PANEL_ERROR = "Scanner's panel status error!",
  POWER_OFF = "Screen is power off",
  PANEL_SCAN_SIGNAL_ERROR = "Panel scan signal error",
  BAD_PIXEL_ALARM = "Panel has too many bad pixels",
  PANEL_COMM_ERROR = "Scanner's panel status error!",
}

export enum V3proExternalDeviceTypeEnum {
  PLC = 0xf888,
  //61448
  V3CHECK = 0xf001,
  SENSOR_TEMPERATURE = 0xf002,
  SENSOR_BRIGHT = 0xf003,
  SENSOR_HUMIDITY = 0xf004,
  SENSOR_SMOKE = 0xf005,
  SENSOR_NOISE = 0xf006,
  SENSOR_IO = 0xf010,
}

export enum V3proPanelStatusEnum {
  OK = "OK",
  ERROR = "ERROR",
}

export enum V3proScreenTypeEnum {
  //65280
  SCREEN_FULL_COLOR = 0xff00,
  //65281
  SCREEN_LIGHT = 0xff01,
  //65282 XXX::this only used for full color screen with dual card
  SCREEN_DUAL_CARD = 0xff02,
  //65283
  SCREEN_HIGHWAY = 0xff03,
}

/**
 * 告警消息类型
 */
export enum V3proAlertMessageErrTypeEnum {
  DEAD_PIXEL = "DEAD_PIXEL",
  LUM_SENSOR = "LUM_SENSOR",
  SEND_BOX_TEMP = "SEND_BOX_TEMP",
  SEND_BOX_NETWORK_LINK = "SEND_BOX_NETWORK_LINK",
  SEND_BOX_SIGNAL_INPUT = "SEND_BOX_SIGNAL_INPUT",
  SCAN_BOARD_NETWORK_ERROR_BIT = "SCAN_BOARD_NETWORK_ERROR_BIT",
  SCAN_BOARD_ERROR_RESET = "SCAN_BOARD_ERROR_RESET",
  PANEL_VOLTAGE = "PANEL_VOLTAGE",
  SCAN_BOARD_TEMP = "SCAN_BOARD_TEMP",
  SCAN_BOARD_VOLTAGE = "SCAN_BOARD_VOLTAGE",
  PANEL_TEMP = "PANEL_TEMP",
  SEND_BOX_COMM = "SEND_BOX_COMM",
  SCAN_BOARD_COMM = "SCAN_BOARD_COMM",
  PANEL_SIGNAL = "PANEL_SIGNAL",
  PANEL_COMM = "PANEL_COMM",
  START_TIME = "START_TIME",
  DOOR_OPEN = "DOOR_OPEN",
}

/**
 * 统一管道消息类型
 */
export enum V3proSubjectMessageTypeEnum {
  ALERT = "ALERT",
  STRING = "STRING",
}
